<%@ page contentType="text/html;charset=UTF-8" pageEncoding="utf-8"
	language="java"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>12306车票查询</title>
<link rel="stylesheet" type="text/css"
	href="<%=basePath%>js/jquery-easyui-1.5.3/themes/default/easyui.css">
<link rel="stylesheet" type="text/css"
	href="<%=basePath%>js/jquery-easyui-1.5.3/themes/icon.css">
<link rel="stylesheet" type="text/css"
	href="<%=basePath%>js/jquery-easyui-1.5.3/themes/color.css">
<link rel="stylesheet" type="text/css" href="<%=basePath%>css/train.css">
<script type="text/javascript"
	src="<%=basePath%>js/jquery-easyui-1.5.3/jquery.min.js"></script>
<script type="text/javascript"
	src="<%=basePath%>js/jquery-easyui-1.5.3/jquery.easyui.min.js"></script>
<script type="text/javascript" src="<%=basePath%>js/scity.js"></script>
<script type="text/javascript" src="<%=basePath%>js/arrvialcity.js"></script>
<script type="text/javascript" src="<%=basePath%>js/train_table.js"></script>
</head>

<body>
	<div id="top">
		<b>欢迎来到12306购票系统</b>
	</div>
	<div id="nav">
		<span id="span-nav">欢迎您：&nbsp;&nbsp;&nbsp;&nbsp;
			&nbsp;&nbsp;&nbsp;&nbsp;<a href="#" class="easyui-linkbutton c2"
			style="width: 80px">退出</a>
		</span>
	</div>
	<div id="ck_table">
		<table border="1">
			<thead>
				<tr>
					<th	id="th" style="width:130px;align:center;">列车编号</th>
					<th id="th" style="width:175px;align:center;">列车车次</th>
					<th id="th" style="width:175px;align:center;">始发站</th>
					<th id="th" style="width:175px;align:center;">终点站</th>
					<th id="th" style="width:175px;align:center;">出发时间</th>
					<th id="th" style="width:175px;align:center;">到达时间</th>
					<th id="th" style="width:175px;align:center;">票价</th>
				</tr>

				<c:forEach var="a" items="${traincheck}">
					<%--用EL表达式调用list对象的属性循环输出对象的各个属性值--%>
					<tr>
						<td id="th" style="width:130px;align:center;">${a.tid}</td>
						<td id="th" style="width:175px;align:center;">${a.trainno}</td>
						<td id="th" style="width:175px;align:center;">${a.dstation}</td>
						<td id="th" style="width:175px;align:center;">${a.terminal}</td>
						<td id="th" style="width:175px;align:center;">${a.departure_Time}</td>
						<td id="th" style="width:175px;align:center;">${a.arrival_Time}</td>
						<td id="th" style="width:175px;align:center;">${a.price}</td>
						<td id="th" style="width:150px;align:center;"></td>
					</tr>

				</c:forEach>
			</thead>
		</table>
	</div>
	<div id="footer">
		<p align="center">@copyright My 12306</p>
	</div>
</body>
</html>